package com.example.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.domain.Favorite;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.domain.Movie;
import com.example.domain.model.MovieDTO;
import com.example.domain.model.SearchDTO;

/**
* @author Administrator
* @description 针对表【favorite】的数据库操作Service
* @createDate 2023-03-20 09:44:27
*/
public interface FavoriteService extends IService<Favorite> {

    Favorite getById(String id,String userId);

    IPage<MovieDTO> getList(String userId, Page<Favorite> page, SearchDTO searchDTO);

    boolean save(String movieId,String userId);

    boolean update(String id,Favorite favorite);

    boolean delete(String movieId,String userId);
}
